import redis.clients.jedis.Jedis;
public class RedisDemo {
	public static void main(String[] args) {
		Jedis jedis = new Jedis("127.0.0.1", 6379, 100000);
		jedis.set("foo", "bar");
		System.out.println(jedis.get("foo"));
	}
}